package org.jsbd.boss.dao.impl;

import java.util.List;

import org.jsbd.boss.dao.IFlowDataDAO;
import org.jsbd.boss.domian.channel.FlowChartDto;
import org.jsbd.boss.domian.channel.FlowVo;
import org.springframework.stereotype.Repository;

@Repository("flowDataDAO")
public class FlowDataDAOImpl extends WebmengLogBaseDao implements IFlowDataDAO {

	@Override
	public List<String> selectXAxis(FlowVo flowVo) {
		return super.queryForList("qy_flow_data.SELECT_X_AXIS", flowVo);
	}

	@Override
	public List<FlowChartDto> selectYAxis(FlowVo flowVo) {
		return super.queryForList("qy_flow_data.SELECT_Y_AXIS", flowVo);
	}

	@Override
	public String selectAvg(FlowVo flowVo) {
		return (String) super.queryForObject("qy_flow_data.SELECT_AVG", flowVo);
	}

	@Override
	public List<String> selectBigFlowXAxis(FlowVo flowVo) {
		return super.queryForList("qy_flow_data.SELECT_BIG_FLOW_X_AXIS", flowVo);
	}

	@Override
	public List<Double> selectBigFlowReceiveYAxis(FlowVo flowVo) {
		return super.queryForList("qy_flow_data.SELECT_BIG_FLOW_RECEIVE_Y_AXIS", flowVo);
	}
	
	@Override
	public List<Double> selectBigFlowSendYAxis(FlowVo flowVo) {
		return super.queryForList("qy_flow_data.SELECT_BIG_FLOW_SEND_Y_AXIS", flowVo);
	}

}
